package com.olive.service;

import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.stereotype.Component;

@Component
@EnableBinding(Sink.class)
public class MessageConsumer {
	
	@StreamListener(Sink.INPUT)
	public void process(Object message) {
		System.out.println("received message: " + message);
	}
	
}
